/**
 * Created by Administrator on 2016/11/14.
 */
var express = require('express');
var bodyParser = require('body-parser');

var app = express();

var Router = require('./routes/index');
app.set('views','./views');
app.set('view engine','ejs');
app.use(express.static('public'));
app.use(bodyParser.urlencoded({extended:true}));
app.use('/',Router);
app.listen(3000,function(){
    console.log('node is OK');
})